package com.xindaoapp.happypet.bean;

import java.io.Serializable;
import java.util.List;

public class PetInfo extends BaseEntity{
	private String total;
	private List<Pet> array;
	
	
	@Override
	public String toString() {
		return "PetInfo [total=" + total + ", array=" + array + "]";
	}

	public String getTotal() {
		return total;
	}

	public void setTotal(String total) {
		this.total = total;
	}


	public List<Pet> getArray() {
		return array;
	}


	public void setArray(List<Pet> array) {
		this.array = array;
	}
	


	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((array == null) ? 0 : array.hashCode());
		result = prime * result + ((total == null) ? 0 : total.hashCode());
		return result;
	}


	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		PetInfo other = (PetInfo) obj;
		if (array == null) {
			if (other.array != null)
				return false;
		} else if (!array.equals(other.array))
			return false;
		if (total == null) {
			if (other.total != null)
				return false;
		} else if (!total.equals(other.total))
			return false;
		return true;
	}



	public class Pet implements Serializable{
		private static final long serialVersionUID = 1L;
		private String addtime;
		private String birthday;
		private String birthmonth;
		private String birthyear;
		private String breed;
		private String breedid;
		public String birth;
		private String content;
		private String cover;
		private String iscommend;
		private String isfirstshow;
		private String likefood;
		private String likeplace;
		private String likething;
		private String liketoy;
		private String liketrick;
		private String nolikething;
		private String pettype;
		private String remote;
		private String sex;
		private String status;
		private String tag;
		private String title;
		private String updatetime;
		private String userid;
		private String username;
		private String viewnum;
		private String id;
		
		public String getId() {
			return id;
		}
		public void setId(String id) {
			this.id = id;
		}
		public String getAddtime() {
			return addtime;
		}
		public void setAddtime(String addtime) {
			this.addtime = addtime;
		}
		public String getBirthday() {
			return birthday;
		}
		public void setBirthday(String birthday) {
			this.birthday = birthday;
		}
		public String getBirthmonth() {
			return birthmonth;
		}
		public void setBirthmonth(String birthmonth) {
			this.birthmonth = birthmonth;
		}
		public String getBirthyear() {
			return birthyear;
		}
		public void setBirthyear(String birthyear) {
			this.birthyear = birthyear;
		}
		public String getBreed() {
			return breed;
		}
		public void setBreed(String breed) {
			this.breed = breed;
		}
		public String getBreedid() {
			return breedid;
		}
		public void setBreedid(String breedid) {
			this.breedid = breedid;
		}
		public String getContent() {
			return content;
		}
		public void setContent(String content) {
			this.content = content;
		}
		public String getCover() {
			return cover;
		}
		public void setCover(String cover) {
			this.cover = cover;
		}
		public String getIscommend() {
			return iscommend;
		}
		public void setIscommend(String iscommend) {
			this.iscommend = iscommend;
		}
		public String getIsfirstshow() {
			return isfirstshow;
		}
		public void setIsfirstshow(String isfirstshow) {
			this.isfirstshow = isfirstshow;
		}
		public String getLikefood() {
			return likefood;
		}
		public void setLikefood(String likefood) {
			this.likefood = likefood;
		}
		public String getLikeplace() {
			return likeplace;
		}
		public void setLikeplace(String likeplace) {
			this.likeplace = likeplace;
		}
		public String getLikething() {
			return likething;
		}
		public void setLikething(String likething) {
			this.likething = likething;
		}
		public String getLiketoy() {
			return liketoy;
		}
		public void setLiketoy(String liketoy) {
			this.liketoy = liketoy;
		}
		public String getLiketrick() {
			return liketrick;
		}
		public void setLiketrick(String liketrick) {
			this.liketrick = liketrick;
		}
		public String getNolikething() {
			return nolikething;
		}
		public void setNolikething(String nolikething) {
			this.nolikething = nolikething;
		}
		public String getPettype() {
			return pettype;
		}
		public void setPettype(String pettype) {
			this.pettype = pettype;
		}
		public String getRemote() {
			return remote;
		}
		public void setRemote(String remote) {
			this.remote = remote;
		}
		public String getSex() {
			return sex;
		}
		public void setSex(String sex) {
			this.sex = sex;
		}
		public String getStatus() {
			return status;
		}
		public void setStatus(String status) {
			this.status = status;
		}
		public String getTag() {
			return tag;
		}
		public void setTag(String tag) {
			this.tag = tag;
		}
		public String getTitle() {
			return title;
		}
		public void setTitle(String title) {
			this.title = title;
		}
		public String getUpdatetime() {
			return updatetime;
		}
		public void setUpdatetime(String updatetime) {
			this.updatetime = updatetime;
		}
		public String getUserid() {
			return userid;
		}
		public void setUserid(String userid) {
			this.userid = userid;
		}
		public String getUsername() {
			return username;
		}
		public void setUsername(String username) {
			this.username = username;
		}
		public String getViewnum() {
			return viewnum;
		}
		public void setViewnum(String viewnum) {
			this.viewnum = viewnum;
		}
		@Override
		public String toString() {
			return "Pet [addtime=" + addtime + ", birthday=" + birthday + ", birthmonth=" + birthmonth + ", birthyear=" + birthyear + ", breed=" + breed
					+ ", breedid=" + breedid + ", content=" + content + ", cover=" + cover + ", iscommend=" + iscommend + ", isfirstshow=" + isfirstshow
					+ ", likefood=" + likefood + ", likeplace=" + likeplace + ", likething=" + likething + ", liketoy=" + liketoy + ", liketrick=" + liketrick
					+ ", nolikething=" + nolikething + ", pettype=" + pettype + ", remote=" + remote + ", sex=" + sex + ", status=" + status + ", tag=" + tag
					+ ", title=" + title + ", updatetime=" + updatetime + ", userid=" + userid + ", username=" + username + ", viewnum=" + viewnum + "]";
		}
		@Override
		public int hashCode() {
			final int prime = 31;
			int result = 1;
			result = prime * result + getOuterType().hashCode();
			result = prime * result + ((addtime == null) ? 0 : addtime.hashCode());
			result = prime * result + ((birthday == null) ? 0 : birthday.hashCode());
			result = prime * result + ((birthmonth == null) ? 0 : birthmonth.hashCode());
			result = prime * result + ((birthyear == null) ? 0 : birthyear.hashCode());
			result = prime * result + ((breed == null) ? 0 : breed.hashCode());
			result = prime * result + ((breedid == null) ? 0 : breedid.hashCode());
			result = prime * result + ((content == null) ? 0 : content.hashCode());
			result = prime * result + ((cover == null) ? 0 : cover.hashCode());
			result = prime * result + ((iscommend == null) ? 0 : iscommend.hashCode());
			result = prime * result + ((isfirstshow == null) ? 0 : isfirstshow.hashCode());
			result = prime * result + ((likefood == null) ? 0 : likefood.hashCode());
			result = prime * result + ((likeplace == null) ? 0 : likeplace.hashCode());
			result = prime * result + ((likething == null) ? 0 : likething.hashCode());
			result = prime * result + ((liketoy == null) ? 0 : liketoy.hashCode());
			result = prime * result + ((liketrick == null) ? 0 : liketrick.hashCode());
			result = prime * result + ((nolikething == null) ? 0 : nolikething.hashCode());
			result = prime * result + ((pettype == null) ? 0 : pettype.hashCode());
			result = prime * result + ((remote == null) ? 0 : remote.hashCode());
			result = prime * result + ((sex == null) ? 0 : sex.hashCode());
			result = prime * result + ((status == null) ? 0 : status.hashCode());
			result = prime * result + ((tag == null) ? 0 : tag.hashCode());
			result = prime * result + ((title == null) ? 0 : title.hashCode());
			result = prime * result + ((updatetime == null) ? 0 : updatetime.hashCode());
			result = prime * result + ((userid == null) ? 0 : userid.hashCode());
			result = prime * result + ((username == null) ? 0 : username.hashCode());
			result = prime * result + ((viewnum == null) ? 0 : viewnum.hashCode());
			return result;
		}
		@Override
		public boolean equals(Object obj) {
			if (this == obj)
				return true;
			if (obj == null)
				return false;
			if (getClass() != obj.getClass())
				return false;
			Pet other = (Pet) obj;
			if (!getOuterType().equals(other.getOuterType()))
				return false;
			if (addtime == null) {
				if (other.addtime != null)
					return false;
			} else if (!addtime.equals(other.addtime))
				return false;
			if (birthday == null) {
				if (other.birthday != null)
					return false;
			} else if (!birthday.equals(other.birthday))
				return false;
			if (birthmonth == null) {
				if (other.birthmonth != null)
					return false;
			} else if (!birthmonth.equals(other.birthmonth))
				return false;
			if (birthyear == null) {
				if (other.birthyear != null)
					return false;
			} else if (!birthyear.equals(other.birthyear))
				return false;
			if (breed == null) {
				if (other.breed != null)
					return false;
			} else if (!breed.equals(other.breed))
				return false;
			if (breedid == null) {
				if (other.breedid != null)
					return false;
			} else if (!breedid.equals(other.breedid))
				return false;
			if (content == null) {
				if (other.content != null)
					return false;
			} else if (!content.equals(other.content))
				return false;
			if (cover == null) {
				if (other.cover != null)
					return false;
			} else if (!cover.equals(other.cover))
				return false;
			if (iscommend == null) {
				if (other.iscommend != null)
					return false;
			} else if (!iscommend.equals(other.iscommend))
				return false;
			if (isfirstshow == null) {
				if (other.isfirstshow != null)
					return false;
			} else if (!isfirstshow.equals(other.isfirstshow))
				return false;
			if (likefood == null) {
				if (other.likefood != null)
					return false;
			} else if (!likefood.equals(other.likefood))
				return false;
			if (likeplace == null) {
				if (other.likeplace != null)
					return false;
			} else if (!likeplace.equals(other.likeplace))
				return false;
			if (likething == null) {
				if (other.likething != null)
					return false;
			} else if (!likething.equals(other.likething))
				return false;
			if (liketoy == null) {
				if (other.liketoy != null)
					return false;
			} else if (!liketoy.equals(other.liketoy))
				return false;
			if (liketrick == null) {
				if (other.liketrick != null)
					return false;
			} else if (!liketrick.equals(other.liketrick))
				return false;
			if (nolikething == null) {
				if (other.nolikething != null)
					return false;
			} else if (!nolikething.equals(other.nolikething))
				return false;
			if (pettype == null) {
				if (other.pettype != null)
					return false;
			} else if (!pettype.equals(other.pettype))
				return false;
			if (remote == null) {
				if (other.remote != null)
					return false;
			} else if (!remote.equals(other.remote))
				return false;
			if (sex == null) {
				if (other.sex != null)
					return false;
			} else if (!sex.equals(other.sex))
				return false;
			if (status == null) {
				if (other.status != null)
					return false;
			} else if (!status.equals(other.status))
				return false;
			if (tag == null) {
				if (other.tag != null)
					return false;
			} else if (!tag.equals(other.tag))
				return false;
			if (title == null) {
				if (other.title != null)
					return false;
			} else if (!title.equals(other.title))
				return false;
			if (updatetime == null) {
				if (other.updatetime != null)
					return false;
			} else if (!updatetime.equals(other.updatetime))
				return false;
			if (userid == null) {
				if (other.userid != null)
					return false;
			} else if (!userid.equals(other.userid))
				return false;
			if (username == null) {
				if (other.username != null)
					return false;
			} else if (!username.equals(other.username))
				return false;
			if (viewnum == null) {
				if (other.viewnum != null)
					return false;
			} else if (!viewnum.equals(other.viewnum))
				return false;
			return true;
		}
		private PetInfo getOuterType() {
			return PetInfo.this;
		}
		
	}
	
}
